package com.shop.pojo;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;

/**
 * Book entity. @author MyEclipse Persistence Tools
 */

public class Book implements java.io.Serializable
{

	// Fields

	private String idBook;
	private Booktype booktype;
	private String bookno;
	private String bookname;
	private BigDecimal bookprice;
	private String publish;
	private String bookauthor;
	private String bookimage;
	private String bookinfo;
	private Integer booksales;
	private Set prices = new HashSet(0);
	private Set collectionses = new HashSet(0);
	private Set storagelists = new HashSet(0);
	private Set purchaselists = new HashSet(0);
	private Set orderlists = new HashSet(0);

	// Constructors

	/** default constructor */
	public Book()
	{
	}

	/** minimal constructor */
	public Book(String idBook, String bookno, String bookname)
	{
		this.idBook = idBook;
		this.bookno = bookno;
		this.bookname = bookname;
	}

	// Property accessors

	public String getIdBook()
	{
		return this.idBook;
	}

	public Book(String idBook, Booktype booktype, String bookno,
			String bookname, BigDecimal bookprice, String publish,
			String bookauthor, String bookimage, String bookinfo,
			Integer booksales, Set prices, Set collectionses, Set storagelists,
			Set purchaselists, Set orderlists) {

		this.idBook = idBook;
		this.booktype = booktype;
		this.bookno = bookno;
		this.bookname = bookname;
		this.bookprice = bookprice;
		this.publish = publish;
		this.bookauthor = bookauthor;
		this.bookimage = bookimage;
		this.bookinfo = bookinfo;
		this.booksales = booksales;
		this.prices = prices;
		this.collectionses = collectionses;
		this.storagelists = storagelists;
		this.purchaselists = purchaselists;
		this.orderlists = orderlists;
	}

	public void setIdBook(String idBook)
	{
		this.idBook = idBook;
	}

	public Booktype getBooktype()
	{
		return this.booktype;
	}

	public void setBooktype(Booktype booktype)
	{
		this.booktype = booktype;
	}

	public String getBookno()
	{
		return this.bookno;
	}

	public void setBookno(String bookno)
	{
		this.bookno = bookno;
	}

	public String getBookname()
	{
		return this.bookname;
	}

	public void setBookname(String bookname)
	{
		this.bookname = bookname;
	}

	public BigDecimal getBookprice()
	{
		return this.bookprice;
	}

	public void setBookprice(BigDecimal bookprice)
	{
		this.bookprice = bookprice;
	}

	public String getPublish()
	{
		return this.publish;
	}

	public void setPublish(String publish)
	{
		this.publish = publish;
	}

	public String getBookauthor()
	{
		return this.bookauthor;
	}
	public void setBookauthor(String ookauthor)
	{
		this.bookauthor = ookauthor;
	}

	public String getBookimage()
	{
		return this.bookimage;
	}

	public void setBookimage(String bookimage)
	{
		this.bookimage = bookimage;
	}

	public String getBookinfo()
	{
		return this.bookinfo;
	}

	public void setBookinfo(String bookinfo)
	{
		this.bookinfo = bookinfo;
	}

	public Set getPrices()
	{
		return this.prices;
	}

	public void setPrices(Set prices)
	{
		this.prices = prices;
	}

	public Set getCollectionses()
	{
		return this.collectionses;
	}

	public void setCollectionses(Set collectionses)
	{
		this.collectionses = collectionses;
	}

	public Set getStoragelists()
	{
		return this.storagelists;
	}

	public void setStoragelists(Set storagelists)
	{
		this.storagelists = storagelists;
	}

	public Set getPurchaselists()
	{
		return this.purchaselists;
	}

	public void setPurchaselists(Set purchaselists)
	{
		this.purchaselists = purchaselists;
	}

	public Set getOrderlists()
	{
		return this.orderlists;
	}

	public void setOrderlists(Set orderlists)
	{
		this.orderlists = orderlists;
	}

	public Integer getBooksales() {
		return booksales;
	}

	public void setBooksales(Integer booksales) {
		this.booksales = booksales;
	}

}